﻿using System.Linq.Expressions;
using SimpleOrmCFPC.Core.Query.Requests;
using SimpleOrmCFPC.Core.Query.expressions.RequestBuilder.WhereElmentsBuilder.Helpers;

namespace SimpleOrmCFPC.Core.Query.expressions.ExprssionCompilers
{
    public class ConstantWhereElementBuilder : IWhereElementBuilder
    {
        public IWhereElement Compute(Expression expression)
        {
            var c = (ConstantExpression)expression;
            return new ConstantWhereElement(c.Value);
        }

        public void FillAdditionalInformation(Expression expression, SQLRequest request)
        {
            
        }
    }
}